Script.RunApp

Note: This statement is named Script Run Application in the Add Statement dialog box.

Starts the application to use during playback. Automatically added to scripts during recording, but you can also manually add it. Must be preceded by the Script.SetContext statement, which specifies the version to use in the application repository.

To close and restart the same application and version during playback, use the Script.CloseApp statement and then another Script.RunApp statement.

Note: If a script needs to run more than one application, you must use the Script.ClearContext statement to clear the existing repository connection and then add Script.SetContext and Script.RunApp statements to run the new application.

Syntax

RunApp()

Supported objects

Script

Example

Script.SetContext("WysiCorp Login/1.0")

Script.RunApp()